﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cos.Core.NHibernate;
using Cos.Core.NHibernate.Tests;
using NUnit.Framework;

namespace Cos.Module.Membership.NHibernate.Tests
{
    [TestFixture]
    public class RoleDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapRoleDataModel()
        {
            new PersistenceSpecification<RoleDataModel>(Session)
                .CheckProperty(x => x.ApplicationName, ApplicationName)
                .CheckProperty(x => x.Rolename, "Rolename" + Guid.NewGuid())
                //.CheckComponentList(x => x.PageGroupAccesses, new List<PageGroupAccessDataModel>())
                //.CheckComponentList(x => x.UsersInRoles, new List<UsersInRoleDataModel>())
                .VerifyTheMappings();
        }
    }
}
